using RBAC.Api.Demain.Entities;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RBAC.Api.Demain.ContentManagement
{
    /// <summary>
    /// 医院表
    /// </summary>
    [Table("Hospitals")]
    public class HospitalModel : BaseEntity
    {
        /// <summary>
        /// 医院名称
        /// </summary>
        [StringLength(100)]
        public string? Name { get; set; }

        /// <summary>
        /// 医院等级
        /// </summary>
        [StringLength(20)]
        public string? Level { get; set; }

        /// <summary>
        /// 医院地址
        /// </summary>
        [StringLength(255)]
        public string? Address { get; set; }

        /// <summary>
        /// 联系电话
        /// </summary>
        [StringLength(20)]
        public string? Phone { get; set; }

        /// <summary>
        /// 医院介绍
        /// </summary>
        public string? Introduction { get; set; }

        /// <summary>
        /// 封面图片路径
        /// </summary>
        [StringLength(512)]
        public string? CoverImageUrl { get; set; }

        /// <summary>
        /// 状态：0-禁用，1-启用
        /// </summary>
        [Required]
        public bool Status { get; set; }
        /// <summary>
        /// 医生数量
        /// </summary>
        public int DoctorNumber { get; set; }
        /// <summary>
        /// 科室数量
        /// </summary>
        public int DepartmentsNumber { get; set; }
        /// <summary>
        /// 科室ID
        /// </summary>
        public long DepartmentsId { get; set; }
    }
}